home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_12 / winroth / define.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-20  |  1.8 KB  |  52 lines

  1. /*
  2. ** Exception Library -- General exception handling for ANSI C programs
  3. ** 
  4. ** Copyright (C) 1992 Computational Vision and Active Perception Lab. (CVAP),
  5. **                    Royal Institute of Technology, Stockholm.
  6. **
  7. ** This library is free software; you can redistribute it and/or
  8. ** modify it under the terms of the GNU Library General Public
  9. ** License as published by the Free Software Foundation; either
  10. ** version 2 of the License, or (at your option) any later version.
  11. ** 
  12. ** This library is distributed in the hope that it will be useful,
  13. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. ** Library General Public License for more details.
  16. ** 
  17. ** You should have received a copy of the GNU Library General Public
  18. ** License along with this library (see COPYING-LIB); if not, write to 
  19. ** the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 
  20. ** USA.
  21. ** 
  22. **                            Written by
  23. **
  24. **                   Harald Winroth, Matti Rendahl
  25. **         Computational Vision and Active Perception Laboratory
  26. **            Royal Institute of Technology
  27. **              S-100 44 Stockholm
  28. **                Sweden
  29. **
  30. ** Report bugs to candela-bug@bion.kth.se, and direct all inquiries to 
  31. ** candela@bion.kth.se.
  32. **
  33. */
  34.  
  35. /*
  36.  * NOTE: This header file should be included in source files which _define_
  37.  * excErr structures. It must _not_ be included in any other header file.
  38.  */
  39.  
  40. #include <exception/exc-err.h>
  41.  
  42. /*
  43.  * Now redefine the EXC_ERR_CREATE macro defined in exc-err.h to also
  44.  * declare AND define the excErr structures.
  45.  */
  46.  
  47. #undef EXC_ERR_DESCRIPTION
  48.  
  49. #define EXC_ERR_DESCRIPTION(NAME, REST)                          \
  50.   EXC_ERR_DECLARE(NAME, REST);                              \
  51.   EXC_ERR_DEFINE(NAME, REST)
  52.